<%@ page import="org.ibiblio.terasaur.bt.Seedbank" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="thin_sidebar" />
        <g:set var="entityName" value="seed bank" />
        <content tag="title"><g:message code="default.edit.label" args="[entityName]" /></content>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span> |
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="rule"><hr /></div>
        <div class="body hentry">
            <g:hasErrors bean="${seedbankInstance}">
            <div class="errors">
                <g:renderErrors bean="${seedbankInstance}" as="list" />
            </div>
            </g:hasErrors>

            <div id="seedbank-details" class="full full-content">
                <g:form method="post" >
                    <g:hiddenField name="id" value="${seedbankInstance?.id}" />
                    <g:hiddenField name="version" value="${seedbankInstance?.version}" />
                    <div class="dialog">
<tmpl:/seedbank/edit_form />
                    </div>
                    <br/>
                    <div class="buttons">
                        <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    </div>
                </g:form>
                <div class="clear"></div>

                <div class="edit edit-item">
                    <g:link action="show" id="${seedbankInstance?.id}" title="Finished editing" class="edit-button">Finished editing</g:link>
                </div>
                <div class="edit delete-item">
                    <g:link action="delete" id="${seedbankInstance?.id}" title="Delete seedbank" class="edit-button"
                        onclick="return confirm('${message(code: 'default.button.delete.confirm.message')}');" >Delete</g:link>
                </div>
            </div><!-- seedbank-details -->

        </div>
    </body>
</html>
